fast calculation